package top.tangyh.lamp.care.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import static com.baomidou.mybatisplus.annotation.SqlCondition.EQUAL;
import static top.tangyh.lamp.model.constant.Condition.LIKE;
import top.tangyh.basic.base.entity.Entity;


/**
 * <p>
 * 实体类
 * 评估评分输入项
 * </p>
 *
 * @author zqb
 * @date 2024-07-09 17:07:17
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Builder
@TableName("b_pg_srx")
public class BPgSrx extends Entity<Long> {
    private static final long serialVersionUID = 1L;

    /**
     * 所属评估评分id
     */
    @TableField(value = "pg_id", condition = EQUAL)
    @Schema(description = "所属评估评分id")
    private Long pgId;
    /**
     * 输入项名称
     */
    @TableField(value = "srx_name", condition = LIKE)
    @Schema(description = "输入项名称")
    private String srxName;
    /**
     * 输入项类型code
     */
    @TableField(value = "srx_type_code", condition = LIKE)
    @Schema(description = "输入项类型code")
    private String srxTypeCode;
    /**
     * 输入项步骤数字 默认1
     */
    @TableField(value = "srx_bz", condition = EQUAL)
    @Schema(description = "输入项步骤数字 默认1")
    private Integer srxBz;
    /**
     * 对应布局id或标识未定
     */
    @TableField(value = "srx_bj", condition = LIKE)
    @Schema(description = "对应布局id或标识未定")
    private String srxBj;
    /**
     * 布局缩写
     */
    @TableField(value = "bj_short_name", condition = LIKE)
    @Schema(description = "布局缩写")
    private String bjShortName;
    /**
     * 范围开始 如果是类型是区间(必填)
     */
    @TableField(value = "range_start", condition = EQUAL)
    @Schema(description = "范围开始 如果是类型是区间(必填)")
    private BigDecimal rangeStart;
    /**
     * 范围结束 如果是类型是区间(必填)
     */
    @TableField(value = "range_end", condition = EQUAL)
    @Schema(description = "范围结束 如果是类型是区间(必填)")
    private BigDecimal rangeEnd;
    /**
     * 排序 默认1
     */
    @TableField(value = "orders", condition = EQUAL)
    @Schema(description = "排序 默认1")
    private Integer orders;
    /**
     * 创建人
     */

    /**
     * 是否自定义，1是自定义，默认0
     */
    @TableField(value = "is_diy", condition = EQUAL)
    @Schema(description = "是否自定义，1是自定义，默认0")
    private Integer isDiy;
    /**
     * 
     */
    @TableField(value = "src_l1", condition = LIKE)
    @Schema(description = "")
    private String srcL1;
    /**
     * 数据来源-层级2
     */
    @TableField(value = "src_l2", condition = LIKE)
    @Schema(description = "数据来源-层级2")
    private String srcL2;
    /**
     * 数据来源-层级3
     */
    @TableField(value = "src_l3", condition = LIKE)
    @Schema(description = "数据来源-层级3")
    private String srcL3;
    /**
     * 是否总分输入项，0-否，1-是，默认是0
     */
    @TableField(value = "has_score", condition = EQUAL)
    @Schema(description = "是否总分输入项，0-否，1-是，默认是0")
    private Integer hasScore;
    /**
     * 区间类型是否启用分值，默认0，0-否，1-是
     */
    @TableField(value = "enable_score", condition = EQUAL)
    @Schema(description = "区间类型是否启用分值，默认0，0-否，1-是")
    private Integer enableScore;



}
